package com.gt.web.srv.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;
import lombok.Data;

/**
 * 用户券码
 * @TableName biz_people_coupon
 */
@TableName(value ="biz_people_coupon")
@Data
public class PeopleCoupon extends BaseAuto {
    /**
     * 
     */
    @TableId(value = "user_coupon_id", type = IdType.AUTO)
    private Long userCouponId;
    /**
     * 商户id
     */
    @TableField(value = "tenant_id")
    private Long tenantId;

    @TableField(value = "tenant_name")
    private String tenantName;
    /**
     * 来源券码
     */
    @TableField(value = "source_id")
    private Long sourceId;
    /**
     * 用户ID
     */
    @TableField(value = "people_id")
    private Long peopleId;
    @TableField(value = "people_name")
    private String peopleName;
    /**
     * 优惠券标题
     */
    @TableField(value = "title")
    private String title;

    /**
     * 券码
     */
    @TableField(value = "code")
    private String code;

    /**
     * 类型 0:满减,1:打折券,2:兑换券
     */
    @TableField(value = "coupon_type")
    private Integer couponType;

    /**
     * 满多少金额
     */
    @TableField(value = "amount")
    private String amount;

    /**
     * 减多少金额
     */
    @TableField(value = "reduce")
    private String reduce;

    /**
     * 打多少折
     */
    @TableField(value = "discount")
    private String discount;

    /**
     * 兑换物
     */
    @TableField(value = "exchange_items")
    private String exchangeItems;

    /**
     * 券有效期: 开始时间
     */
    @TableField(value = "start")
    private LocalDateTime start;

    /**
     * 券有效期：结束时间
     */
    @TableField(value = "end")
    private LocalDateTime end;

    /**
     * 0：待使用，1：已使用
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 核销码
     */
    @TableField(value = "verification_code")
    private String verificationCode;

    /**
     * 核销门店
     */
    @TableField(value = "verification_store")
    private String verificationStore;

    /**
     * 核销时间
     */
    @TableField(value = "verification_time")
    private LocalDateTime verificationTime;
    @TableField(value = "received_time")
    private LocalDateTime receivedTime;
    /**
     * 兑换消耗的积分
     */
    @TableField(value = "score")
    private Integer score;
    /**
     * 券使用说明
     */
    @TableField(value = "description")
    private String description;
    /**
     * 可用时间段
     */
    private String timeInteral;
    /**
     * 可用门店
     */
    private String stores;
    @TableField(value = "community_id")
    private Long communityId;

    @TableField(value = "community_name")
    private String communityName;
}